@model JYJ.AiYard.Web.Portal.Models.Account.RegisterResultViewModel
@{
    ViewData["Title"] = "RegisterByLink";
}


@section Scripts
    {
    <script src="~/pages/account/register-by-link.js" asp-append-version="true"></script>
}

@section Styles
    {

}
<!-- Register Form -->
<div class="container position-relative space-2">
    <input id="hasEmailAddress" type="hidden" value="@{@(!string.IsNullOrWhiteSpace(Model.EmailAddress))}" />
    <form id="reSendCodeForm" class="js-validate loginForm w-md-75 w-lg-50 mx-md-auto"
          action="@Url.Action("ReSendEmailConfirmationCode","Account")" method="post">


        @Html.AntiForgeryToken()

        <!-- Title -->
        <div class="mb-7">
            <h2 class="h3 text-primary font-weight-normal mb-0">
                请前往邮箱激活账户
                <span class="font-weight-semi-bold">
                </span>
            </h2>
            <p>
                激活您的账号，使用52ABP创建您的项目。52ABP 是终身学习者的编程知识社区
                保持好奇，刻意练习，每日精进。
            </p>
        </div>

        <!-- End Title -->
        <!-- Form Group -->
        @if (string.IsNullOrWhiteSpace(Model.EmailAddress))
        {
            <div class="js-form-message form-group">
                <label class="form-label" for="emailAddress">@L("EmailAddress")</label>
                <input type="text" class="form-control" id="emailAddress" name="emailAddress"
                       aria-label="请输入有效的电子邮件地址" required
                       placeholder="@L("EmailAddress")" value="@Model.EmailAddress"
                       data-msg="请输入有效的电子邮件地址"
                       data-error-class="u-has-error"
                       data-success-class="u-has-success">
            </div>
        }
        else
        {
            <div class="js-form-message form-group">
                <input id="emailAddress" name="emailAddress" type="hidden" value="@Model.EmailAddress" />
                <label class="form-label" for="userName">@L("EmailAddress")</label>
                <input type="text" class="form-control" id="tmpEmailAddress" 
                       value="@Model.EmailAddress" readonly>
            </div>
        }

        <!-- End Form Group -->
        <!-- Form Group -->
        <div class="js-form-message mb-3">
            <label class="form-label" for="code">
                验证码（不区分大小写）：
                <span class="text-danger">*</span>
            </label>
            <div class="input-group">
                <input type="text" class="form-control" id="code" name="code"
                       placeholder="请填写验证码" aria-label="请填写验证码" required data-msg="请输入验证码，不能为空。"
                       data-error-class="u-has-error"
                       data-success-class="u-has-success">
                <div class="input-group-append">
                    <img id="val_code_img" alt="看不清？点击更换" />
                </div>
            </div>
        </div>

        <!-- Button -->
        <div class="row align-items-center mb-5">
            <input id="btnReSend" type="submit"
                   value="@L("ReSend")"
                   class="btn btn-primary btn-block transition-3d-hover" />
        </div>
        <!-- End Button -->
    </form>
</div>
<!-- End Login Form -->
